package com.joysuch.wwyt.bp.bean.investigate;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.joysuch.wwyt.bp.enums.SafeTableSourceTypes;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotEmpty;

/**
 * @Author ZhangDong
 * @Date 2020/12/2 13:58
 */
@Data
public class BpSafeTableItemBean {

    @ApiModelProperty("主键id-修饰时传值")
    private Long id;
    @ApiModelProperty("安全检查表id")
    private Long safeTableId;
    @ApiModelProperty("数据来源id--模板导入的不用传值")
    private Long sourceId;
    @ApiModelProperty("排查项目")
    private String item;
    @ApiModelProperty("排查内容")
    private String content;
    @ApiModelProperty("依据标准")
    private String standard;
    @ApiModelProperty("来源")
    @Enumerated(EnumType.ORDINAL)
    @NotNull(message = "source cannot be null")
    private SafeTableSourceTypes source;
}
